﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_Login.Master"
    AutoEventWireup="true" CodeBehind="Pagina_Login.aspx.cs" Inherits="Manager.PaginaLogin.Pagina_Login" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function Trim(str) { return str.replace(/^\s+|\s+$/g, ""); }

        var firstTimeUser = true;
        //var firstTimePassword = true;
        function clearFieldUser() {
            if (firstTimeUser) {
                document.getElementById('textUser').value = '';
                document.getElementById('textUser').style.color = 'black';
                firstTimeUser = false;
            }
        }

        //var firstTimePassword = true;
       
         function clearFieldPassword(toInitial) 
         {
            if (toInitial == false) 
            {
                document.getElementById('textSenha').style.display = 'none';
                document.getElementById('textPass').style.display = '';
                document.getElementById('textPass').value = '';
                document.getElementById('textPass').focus();
            } 
            else 
            { 
                if (document.getElementById('textPass').value == '') 
                {
                    document.getElementById('textPass').style.color = '#000000';
                    document.getElementById('textSenha').style.display = '';
                    document.getElementById('textPass').style.display = 'none';
                }
            }
         }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%; height: 255px; margin-top: 52px;">
        <tr>
            <td align="center" class="style1">
                <asp:Label ID="Label1" runat="server" Text="SCRUM" Font-Names="Verdana" Font-Size="XX-Small"></asp:Label>
                <br />
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="Large"
                    ForeColor="#663300" Text="Seu gerente de projetos"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" valign="bottom" style="padding-bottom: 4px" class="style2">
                <asp:TextBox ID="txtUsuario" runat="server" Width="220px" Height="30px" Font-Bold="True"
                    Font-Names="Calibri" Font-Size="28px" CssClass="nonwatermarked"></asp:TextBox>
                <asp:TextBoxWatermarkExtender ID="txtUsuario_TextBoxWatermarkExtender" runat="server"
                    TargetControlID="txtUsuario" WatermarkText="Usuário" WatermarkCssClass="watermarked">
                </asp:TextBoxWatermarkExtender>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top">
            <%--<input id="textSenha" onfocus="clearFieldPassword(false)" type="text" style="font-size: 23px;
                                    color: #CCCCCC; width: 220px; height: 30px;" value="Senha" />--%>
                                <asp:TextBox ID="textPass" runat="server" TextMode="Password" Style="font-size: 14px;
                                    height: 15px; color: #000000; width: 140px; display: block">Senha</asp:TextBox>

                <div>
                    <asp:Label ID="lbErroLogin" runat="server" Text="Usuário ou senha inválidos" ForeColor="Red"
                        Font-Size="11px" Font-Bold="True" Visible="False" Style="font-family: Calibri"></asp:Label>
                </div>
                <div style="margin-top: 26px">
                    <asp:ImageButton ID="btEntrar" runat="server" ImageUrl="~/Botao/Entrar.png" 
                        onclick="btEntrar_Click" />
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
